<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>题库管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
            <div class="tit"><{$left_menu_min.menu}></div>
            <ul>
                <{foreach from=$left_menu_min.list item=item}>
                <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                <{/foreach}>
            </ul>
        </div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
				<div class="tit p-lr20">
				    <span <{if $conditions.type == 3}>class="curr"<{/if}>><a href="/classes/analys/3">作业</a></span>
				    <span <{if $conditions.type == 4}>class="curr"<{/if}>><a href="/classes/analys/4">考试</a></span>
				</div>
				<!--star内容区域-->
				<div class="mainScroll">
				    <div class="mainContainer line-all">
				        <!--star tabMainCont-->
				        <div class="tabMainCont">
				            <!--star会员管理-->
							<fieldset class="layui-elem-field">
						  		<legend>筛选</legend>
					  			<div class="layui-field-box">
  									<form class="layui-form layui-form-pane1" method="post">
				                    	<div class="layui-form-item">
										  	<div class="layui-inline">
									    		<input type="text" class="layui-input" style="width:200px;" placeholder="<{$type_name}>名称"  name="name" value="<{if !empty($conditions['name'])}><{$conditions['name']}><{/if}>" />
									    	</div>

									    	<div class="layui-inline">
												<select name="subject_id" datatype="*">
													<option value="0" >科目</option>
													<{foreach from=$subject_list item=subject}>
														<option value="<{$subject.id}>" <{if isset($conditions.subject_id) && $conditions.subject_id==$subject.id}>selected=selected<{/if}>><{$subject.title}></option>
													<{/foreach}>
												</select>
											</div>

											<div class="layui-inline">
												<select name="class_id" datatype="*">
													<option value="0" >班级</option>
													<{foreach from=$class_list item=class}>
														<option value="<{$class.id}>" <{if isset($conditions.class_id) && $conditions.class_id==$class.id}>selected=selected<{/if}>><{$class.class_name}></option>
													<{/foreach}>
												</select>
											</div>



									    	
								    	</div>
								    	<div class="layui-form-item">
											<div class="layui-input-inline">
												<input class="layui-input" name="start_time" placeholder="发布时间" id="LAY_demorange_s" value="<{if !empty($conditions['start_time'])}><{$conditions['start_time']}><{/if}>">
											</div>
											<div class="layui-form-mid">-</div>
											<div class="layui-input-inline">
												<input class="layui-input" name="end_time" placeholder="发布时间" id="LAY_demorange_e" value="<{if !empty($conditions['end_time'])}><{$conditions['end_time']}><{/if}>">
											</div>

											<div class="layui-inline">
									    		<button type="submit" class="layui-btn">搜索</button>
									    	</div>
										</div>
				                    </form>
		                    	</div>
							</fieldset>
		                	<form class="layui-form layui-form-pane1" method="post" delete_action="/topic/delete">
			                    <table class="layui-table" lay-even lay-skin="row">
			                        <thead>
									  	 <tr>
				                            <th><{$type_name}>名称</th>
				                            <th>科目</th>
				                            <th>发布时间</th>
				                            <th>时长</th>
				                            <th>参加班级</th>
				                        </tr>
								  	</thead>
			                        <{foreach from=$topic_list item=item}>
			                        	<tr>
			                        		<td class="tal not_lb"><a href="/classes/volume_analys_detail/<{$item.id}>/<{$conditions.type}>"><{$item.name}></a></td>
				                            <td class="tal not_lb"><{$item.title}></td>
				                            <td class="tal not_lb"><{$item.add_time|date_format: '%Y-%m-%d %H:%M'}></td>
				                            <td class="tal not_lb"><{$item.timeout}> 分钟</td>
				                            <td class="tal not_lb">
				                            	<{if !empty($item.classes_name) AND $item.classes_name|count > 0}>
				                            		<{foreach from=$item.classes_name item=class}>
				                            		<p><{$class}></p>
				                            		<{/foreach}>
				                            	<{/if}>
				                            </td>
				                        </tr>
			                        <{/foreach}>
			                    </table>
		                    </form>

			                <div class="pages p-tb20" style="text-align:right;">
			                    <{$pagination}>
			                </div>

			            </div>
			            <!--star会员管理-->
			        </div>
				        <!--end tabMainCont-->
		        </div>

		    </div>
		</div>

	</div>
	<{include file="footer.html"}>
</div>
<script>
	layui.use(['form','laydate','jquery'], function(){
		var laydate = layui.laydate;
		var form = layui.form(),$ = layui.jquery;

		var start = {
			min: laydate.now(-30)
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				end.min = datas; //开始日选好后，重置结束日的最小日期
				end.start = datas //将结束日的初始值设定为开始日
			}
		};

		var end = {
			min: laydate.now()
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				start.max = datas; //结束日选好后，重置开始日的最大日期
			}
		};

		document.getElementById('LAY_demorange_s').onclick = function(){
			start.elem = this;
			laydate(start);
		}
		document.getElementById('LAY_demorange_e').onclick = function(){
			end.elem = this
			laydate(end);
		}

	});
</script>
</body>
</html>
